package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

/**
 * @author ：zfr
 * @date ：2022/1/5 14:57
 */
@FieldTypeAnnotation(tableName = "t_l_ck_old_player_return", desc = "汴梁回归日志", autoSave = true, uploadCk = true)
public class LogOldPlayerReturn extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(desc = "回归时间")
    private Date returnTime;
    @FieldTypeAnnotation(desc = "上次登录时间")
    private Date lastLoginTime;
    @FieldTypeAnnotation(desc = "是否绑定")
    private boolean isBind;
    @FieldTypeAnnotation(desc = "绑定用户id")
    private long bindUserId;
    @FieldTypeAnnotation(desc = "绑定时间")
    private Date bindTime;

    public LogOldPlayerReturn(long userId, int activityId, Date returnTime, Date lastLoginTime, boolean isBind, long bindUserId, Date bindTime) {
        this.userId = userId;
        this.activityId = activityId;
        this.returnTime = returnTime;
        this.lastLoginTime = lastLoginTime;
        this.isBind = isBind;
        this.bindUserId = bindUserId;
        this.bindTime = bindTime;
    }

    public long getUserId() {
        return userId;
    }
}

